package com.itheima.demo1;

import java.util.zip.CheckedOutputStream;

public class Autodecrement {

    public static void main(String[] args) {
        int a = 10;
      /*  ++在前: 先对变量做自增 ,然后拿变量参与操作
        ++在后: 先将该变量原本的值取出来参与操作,随后再进行自增
*/        int b = ++a;
        System.out.println(a); //11
        System.out.println(b);  //11
        int aa = 10;
        int c = aa++;
        System.out.println(c);  //10
        System.out.println(aa);  //11



        int dd=10,d=20;

        d+=dd;
        System.out.println(d);

        int e =10;
        e +=5;
        System.out.println(e);
        System.out.println(e>5 || e<20);

    }
}
